<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,height=device-height,viewport-fit=cover,initial-scale=1,maximum-scale=5,minimal-ui">
	<title>Next</title>
</head>
<body>
	<button onclick="history.back()">back</button>
	<button onclick="location.reload()">reload</button>
	<button onclick="getUserInformation()">判断登录状态</button>
	<script>
		var getUserInformationCallback = function (data) {
			alert(data);
		};
		try {
			AppBridge.getUserInformation('getUserInformationCallback');
			alert('getUserInformation called');
		} catch(ex) {
			throw ex;
		}
		window.onload = function () {
			try {
				AppBridge.getUserInformation('getUserInformationCallback');
				alert('getUserInformation called on page loaded');
			} catch(ex) {
				throw ex;
			}
		};
		var getUserInformation = function () {
			try {
				AppBridge.getUserInformation('getUserInformationCallback');
			} catch(ex) {
				throw ex;
			}
		};
	</script>
</body>
</html>
